Skip to content

Conversation

balajis-qb
Copy link
Contributor

@balajis-qb balajis-qb commented Sep 8, 2025

Description

Linked issue: #5701

As mentioned in the linked issue, currently onChangeRaw will just include the corresponding event as the only param. In this PR, I enhanced it a little bit by including the selectionMeta when a day is selected. This includes the selected date object along with the formatted date string. formattedDate contains the formatted version of the selected date.

We're also emitting onChangeRaw when user directly change the date input value with change event, but as it's a change event and not specifically related to any day click, I'm not including the selectionMeta there.

Problem
To include the additional meta of the selected date element.

Changes

  • Add selectionMeta as a second optional param - to include additional details about the selected date
  • Updated the example of onChangeRaw usage
  • Test case update

Screenshots

image

Contribution checklist

  • I have followed the contributing guidelines.
  • I have added sufficient test coverage for my changes.
  • I have formatted my code with Prettier and checked for linting issues with ESLint for code readability.

… is selected

- Send the `selectionMeta` only when a date is selected

Closes Hacker0x01#5701
Copy link

codecov bot commented Sep 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.26%. Comparing base (346221d) to head (4f3fba9).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5858   +/-   ##
=======================================
  Coverage   97.26%   97.26%           
=======================================
  Files          30       30           
  Lines        3441     3443    +2     
  Branches     1457     1458    +1     
=======================================
+ Hits         3347     3349    +2     
  Misses         94       94           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@balajis-qb balajis-qb changed the title ✨ Add selectionMeta param to the onChangeRaw event call when a date is selected ✨ Add selectionMeta param to the onChangeRaw event call - to give additional details about the selected date Sep 8, 2025
@martijnrusschen martijnrusschen merged commit 976d597 into Hacker0x01:main Sep 15, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants